package com.demo.code;

import org.tmatesoft.svn.core.SVNException;
import org.tmatesoft.svn.core.wc.ISVNDiffStatusHandler;
import org.tmatesoft.svn.core.wc.SVNDiffStatus;

public class SvnDiffStatusHandler implements ISVNDiffStatusHandler {

    private int modifyCount = 0;

    @Override
    public void handleDiffStatus(SVNDiffStatus diffStatus) throws SVNException {
//        System.out.println("处理差异状态=" + diffStatus.toString());  added deleted
        //diffStatus.getModificationType().equals("modified")
        modifyCount++;
    }

    public int getModifiedCount() {
        return modifyCount;
    }
}
